package com.eliza.cmps

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import com.eliza.cmps.activity.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        findViewById<Button>(R.id.main__to_CheckBox).setOnClickListener {
            startActivity(Intent(this, CheckBoxActivity::class.java))
        }
        findViewById<Button>(R.id.main__to_ProgressBar).setOnClickListener {
            startActivity(Intent(this, ProgressBarActivity::class.java))
        }
        findViewById<Button>(R.id.main__to_ScrollView).setOnClickListener {
            startActivity(Intent(this, ScrollViewActivity::class.java))
        }
        findViewById<Button>(R.id.main__to_SeekBar).setOnClickListener {
            startActivity(Intent(this, SeekBarActivity::class.java))
        }
        findViewById<Button>(R.id.main__to_PopupWindow).setOnClickListener {
            startActivity(Intent(this, PopupWindowActivity::class.java))
        }
    }
}